package com.xmy.study.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 关数
 * </p>
 *
 * @author hpiggy
 * @since 2023-09-08
 */
@TableName("edu_shutnum")
@ApiModel(value = "Shutnum对象", description = "关数")
@Data
public class Shutnum implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @ApiModelProperty("关数名称")
    private String name;

    @ApiModelProperty("课程id")
    private Long courseId;

    @ApiModelProperty("关数,如：1为第一关")
    private Integer num;


    @ApiModelProperty("状态：1正常，0关闭")
    @TableField(exist = false)
    private Integer status;


    @ApiModelProperty("小的排前面")
    private Integer sort;

    @ExcelIgnore
    @ApiModelProperty("是否删除，0正常，1删除")
    @TableLogic(value = "0", delval = "1")
    @TableField(select = false)
    private Integer deleted;

    @ApiModelProperty("创建人")
    private Long createdId;

    @ApiModelProperty("添加时间")
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdAt;

    @ApiModelProperty("视频列表")
    @ExcelIgnore
    @TableField(exist = false)
    private List<EduVideo> videoList;

}
